package com.shine.icis.hbean;

import java.io.Serializable;
import java.text.DecimalFormat;

public class DataCheckR10 implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 3662405149335236166L;
	
	private DecimalFormat doubleFormat = new DecimalFormat("0.00");
	private int id;
	private String depCode;//证券公司确定的营业部代码
	private String depName;//营业部名称
	private String fundAcct;//客户资金账户账号
	private String taCode;//基金TA代码
	private String invAcct; //对应证券账户账号
	private String oldInvAcct; //历史对应证券账户账号
	private Character invAcctType; //证券账户类别
	private String invAcctTypeName; //证券账户类别名称
	private Character compareFlag; //是否一致：0一致1；不一致
	private int sjrq;//

	public DecimalFormat getDoubleFormat() {
		return doubleFormat;
	}
	public void setDoubleFormat(DecimalFormat doubleFormat) {
		this.doubleFormat = doubleFormat;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getDepCode() {
		return depCode;
	}
	public void setDepCode(String depCode) {
		this.depCode = depCode;
	}
	public String getDepName() {
		return depName;
	}
	public void setDepName(String depName) {
		this.depName = depName;
	}
	public String getFundAcct() {
		return fundAcct;
	}
	public void setFundAcct(String fundAcct) {
		this.fundAcct = fundAcct;
	}
	
	public String getTaCode() {
		return taCode;
	}
	public void setTaCode(String taCode) {
		this.taCode = taCode;
	}
	public String getInvAcct() {
		return invAcct;
	}
	public void setInvAcct(String invAcct) {
		this.invAcct = invAcct;
	}
	public String getOldInvAcct() {
		return oldInvAcct;
	}
	public void setOldInvAcct(String oldInvAcct) {
		this.oldInvAcct = oldInvAcct;
	}
	public Character getInvAcctType() {
		return invAcctType;
	}
	public void setInvAcctType(Character invAcctType) {
		this.invAcctType = invAcctType;
	}
	
	public String getInvAcctTypeName() {
		return invAcctTypeName;
	}
	public void setInvAcctTypeName(String invAcctTypeName) {
		this.invAcctTypeName = invAcctTypeName;
	}
	public Character getCompareFlag() {
		return compareFlag;
	}
	public void setCompareFlag(Character compareFlag) {
		this.compareFlag = compareFlag;
	}
	public int getSjrq() {
		return sjrq;
	}
	public void setSjrq(int sjrq) {
		this.sjrq = sjrq;
	}
	
	public String getCompareFlagText() {
		String compareFlagText = "";
		if (compareFlag == '0') {
			compareFlagText="当前不存在";
		} else if (compareFlag == '1') {
			compareFlagText="当前与历史不一致";
		} else if (compareFlag == '2') {
			compareFlagText="历史不存在";
		} 
		return compareFlagText;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final DataCheckR10 other = (DataCheckR10) obj;
		if (id != other.id)
			return false;
		return true;
	}
	
	
	
}
